package util

func Map[T any, V any](list []T, conv func(T) V) []V {
	vs := make([]V, len(list))
	for i := range list {
		vs[i] = conv(list[i])
	}
	return vs
}
